package com.example.ljdemo.lyl.model.controller;


import com.alibaba.fastjson.JSONObject;
import com.example.ljdemo.lyl.model.entity.ErpUser;
import com.example.ljdemo.lyl.model.service.ErpUserService;
import com.example.ljdemo.model.UserEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author jingjing.dong
 * @since 2021-12-20
 */
@RestController
@RequestMapping("/model/erp-user")
public class ErpUserController {

    @Resource
    private ErpUserService erpUserService;

    @PostMapping("login")
    public String test() {
        List<ErpUser> list= erpUserService.list();
        return JSONObject.toJSONString(list);
    }

}

